package br.com.webprojeto.cadastro;

import java.util.List;

import br.com.webprojeto.basicas.*;
import br.com.webprojeto.cadastro.interfaces.*;
import br.com.webprojeto.interfaces.*;

public class CadastroNotaFiscal implements InterfaceCadastroNotaFiscal  {

	// atributos primarios de interfaces
	private InterfaceColecaoNotaFiscal notaFiscal;

	// construtores
	
	public CadastroNotaFiscal(InterfaceColecaoNotaFiscal notaFiscal) {
		super();
		this.notaFiscal = notaFiscal;
	}

	// metodos delegados
	/* (non-Javadoc)
	 * @see br.com.webrastreio.cadastro.InterfaceCadastroNotaFiscal#adicionarNotaFiscal(br.com.webrastreio.basicas.NotaFiscal)
	 */
	public void adicionarNotaFiscal(NotaFiscal Nf) {
		notaFiscal.adicionarNotaFiscal(Nf);
	}

	/* (non-Javadoc)
	 * @see br.com.webrastreio.cadastro.InterfaceCadastroNotaFiscal#listarNotaFiscal()
	 */
	public List<NotaFiscal> listarNotaFiscal() {
		return notaFiscal.listarNotaFiscal();
	}

	/* (non-Javadoc)
	 * @see br.com.webrastreio.cadastro.InterfaceCadastroNotaFiscal#procurarNotaFiscal(long)
	 */
	public NotaFiscal procurarNotaFiscal(long codNotafiscal) {
		return notaFiscal.procurarNotaFiscal(codNotafiscal);
	}

	/* (non-Javadoc)
	 * @see br.com.webrastreio.cadastro.InterfaceCadastroNotaFiscal#atualiazarNotaFiscal(br.com.webrastreio.basicas.NotaFiscal)
	 */
	public void atualiazarNotaFiscal(NotaFiscal Nf) {
		notaFiscal.atualiazarNotaFiscal(Nf);
	}
	
	

	
	
	

}
